package com.ruoyi.statisticalCenter.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum ScWeightFlowStopEnum
{
    dailyAssessWeight("dailyAssessWeight", "日考核重量"),
    stopWeight("stopWeight", "止损重量"),
    settlementWeight("settlementWeight", "结算重量"),
    assessmentStandard("assessmentStandard", "考核标准"),
    stopLossAssessment("stopLossAssessment", "止损考核"),
    stockCount("stockCount", "包仓票数"),
    baleWeight("baleWeight", "包仓重量"),
    packingWarehouseWeight("packingWarehouseWeight", "包仓均重"),
    averageWeightIndex("averageWeightIndex", "均重指标"),
    weightAssessmentStandard("weightAssessmentStandard", "均重考核标准"),
    weightAssessment("weightAssessment", "均重考核"),
    ningxiaVotes("ningxiaVotes", "宁夏票数"),
    gansuVotes("gansuVotes", "甘肃票数"),
    qinghaiVotes("qinghaiVotes", "青海票数"),
    hainanVotes("hainanVotes", "海南票数"),
    flowTally("flowTally", "流向票数合计"),
    flowRatio("flowRatio", "流向占比"),
    directionIndicator("directionIndicator", "流向指标"),

    flowDirectionTest("flowDirectionTest", "流向考核");

    private final String code;
    private final String info;

    ScWeightFlowStopEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (ScWeightFlowStopEnum value : ScWeightFlowStopEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
